import { http } from '@/utils/http' // 请求封装
import type { PageParams } from '@/types/global' // 分页参数类型
import type { HotResult } from '@/types/hot'

// 获取热门列表
export const getHotListApi = (url: string, data?: PageParams & { subType?: string }) => {
  return http<HotResult>({
    url,
    data,
  })
}
